package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author mbg
 * @version 3.5.3
 */
@Mapper
public interface UserMapper {

    /**
     * 根据返回的openId查询用户
     * @param openId
     * @return
     */
    @Select("select * from user where openid=#{openId}")
    User getOpenId(String openId);

    /**
     * 用户注册
     * @param user
     */
    void insert(User user);
}
